package org.agony2d.view.supportClasses 
{
	import org.agony2d.view.ButtonType;
	
	import org.agony2d.core.agony_internal;
	use namespace agony_internal;
	
public class MovieClipButtonProp 
{
	
	final agony_internal function get press()   : int { return 3 }
	final agony_internal function get release() : int { return 1 }
	final agony_internal function get invalid() : int { return 4 }
	final agony_internal function get leave()   : int { return (effectType & ButtonType.PRESS_PRESS) ? 3 : 1 }
	final agony_internal function get hover()   : int { return (effectType & (ButtonType.PRESS_PRESS | ButtonType.LEAVE_PRESS)) ? 3 : 1 }
	
	
	final agony_internal function initialize( movieClipRef:Class, hasInvalid:Boolean) : void
	{
		this.movieClipRef = movieClipRef
		this.hasInvalid = hasInvalid
	}
	
	
	agony_internal var movieClipRef:Class
	
	agony_internal var effectType:int
	
	agony_internal var hasInvalid:Boolean
}
}